package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WashcarMapper;
import com.ruoyi.system.domain.Washcar;
import com.ruoyi.system.service.IWashcarService;
import com.ruoyi.common.support.Convert;

/**
 * 洗车服务 服务层实现
 * 
 * @author ruoyi
 * @date 2019-07-16
 */
@Service
public class WashcarServiceImpl implements IWashcarService 
{
	@Autowired
	private WashcarMapper washcarMapper;

	/**
     * 查询洗车服务信息
     * 
     * @param washcarId 洗车服务ID
     * @return 洗车服务信息
     */
    @Override
	public Washcar selectWashcarById(Integer washcarId)
	{
	    return washcarMapper.selectWashcarById(washcarId);
	}
	
	/**
     * 查询洗车服务列表
     * 
     * @param washcar 洗车服务信息
     * @return 洗车服务集合
     */
	@Override
	public List<Washcar> selectWashcarList(Washcar washcar)
	{
	    return washcarMapper.selectWashcarList(washcar);
	}
	
    /**
     * 新增洗车服务
     * 
     * @param washcar 洗车服务信息
     * @return 结果
     */
	@Override
	public int insertWashcar(Washcar washcar)
	{
	    return washcarMapper.insertWashcar(washcar);
	}
	
	/**
     * 修改洗车服务
     * 
     * @param washcar 洗车服务信息
     * @return 结果
     */
	@Override
	public int updateWashcar(Washcar washcar)
	{
	    return washcarMapper.updateWashcar(washcar);
	}

	/**
     * 删除洗车服务对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteWashcarByIds(String ids)
	{
		return washcarMapper.deleteWashcarByIds(Convert.toStrArray(ids));
	}
	
}
